﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020007CD RID: 1997
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetRndOptionCsReq : IMessage<GetRndOptionCsReq>, IMessage, IEquatable<GetRndOptionCsReq>, IDeepCloneable<GetRndOptionCsReq>, IBufferMessage
	{
		// Token: 0x17001975 RID: 6517
		// (get) Token: 0x060059B2 RID: 22962 RVA: 0x000F19CC File Offset: 0x000EFBCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetRndOptionCsReq> Parser
		{
			get
			{
				return GetRndOptionCsReq._parser;
			}
		}

		// Token: 0x17001976 RID: 6518
		// (get) Token: 0x060059B3 RID: 22963 RVA: 0x000F19D3 File Offset: 0x000EFBD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetRndOptionCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001977 RID: 6519
		// (get) Token: 0x060059B4 RID: 22964 RVA: 0x000F19E5 File Offset: 0x000EFBE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetRndOptionCsReq.Descriptor;
			}
		}

		// Token: 0x060059B5 RID: 22965 RVA: 0x000F19EC File Offset: 0x000EFBEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRndOptionCsReq()
		{
		}

		// Token: 0x060059B6 RID: 22966 RVA: 0x000F19F4 File Offset: 0x000EFBF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRndOptionCsReq(GetRndOptionCsReq other) : this()
		{
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060059B7 RID: 22967 RVA: 0x000F1A19 File Offset: 0x000EFC19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRndOptionCsReq Clone()
		{
			return new GetRndOptionCsReq(this);
		}

		// Token: 0x17001978 RID: 6520
		// (get) Token: 0x060059B8 RID: 22968 RVA: 0x000F1A21 File Offset: 0x000EFC21
		// (set) Token: 0x060059B9 RID: 22969 RVA: 0x000F1A29 File Offset: 0x000EFC29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x060059BA RID: 22970 RVA: 0x000F1A32 File Offset: 0x000EFC32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetRndOptionCsReq);
		}

		// Token: 0x060059BB RID: 22971 RVA: 0x000F1A40 File Offset: 0x000EFC40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetRndOptionCsReq other)
		{
			return other != null && (other == this || (this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060059BC RID: 22972 RVA: 0x000F1A70 File Offset: 0x000EFC70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060059BD RID: 22973 RVA: 0x000F1AAF File Offset: 0x000EFCAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060059BE RID: 22974 RVA: 0x000F1AB7 File Offset: 0x000EFCB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060059BF RID: 22975 RVA: 0x000F1AC0 File Offset: 0x000EFCC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Id);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060059C0 RID: 22976 RVA: 0x000F1AF4 File Offset: 0x000EFCF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060059C1 RID: 22977 RVA: 0x000F1B32 File Offset: 0x000EFD32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetRndOptionCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060059C2 RID: 22978 RVA: 0x000F1B63 File Offset: 0x000EFD63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060059C3 RID: 22979 RVA: 0x000F1B6C File Offset: 0x000EFD6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Id = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040022EE RID: 8942
		private static readonly MessageParser<GetRndOptionCsReq> _parser = new MessageParser<GetRndOptionCsReq>(() => new GetRndOptionCsReq());

		// Token: 0x040022EF RID: 8943
		private UnknownFieldSet _unknownFields;

		// Token: 0x040022F0 RID: 8944
		public const int IdFieldNumber = 6;

		// Token: 0x040022F1 RID: 8945
		private uint id_;
	}
}
